package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.BookTagMappingDao;
import io.wdb.modules.generator.generator.entity.BookTagMappingEntity;
import io.wdb.modules.generator.generator.service.BookTagMappingService;



@Service("bookTagMappingService")
public class BookTagMappingServiceImpl implements BookTagMappingService {
	@Autowired
	private BookTagMappingDao bookTagMappingDao;
	
	@Override
	public BookTagMappingEntity queryObject(Long id){
		return bookTagMappingDao.queryObject(id);
	}
	
	@Override
	public List<BookTagMappingEntity> queryList(Map<String, Object> map){
		return bookTagMappingDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bookTagMappingDao.queryTotal(map);
	}
	
	@Override
	public void save(BookTagMappingEntity bookTagMapping){
		bookTagMappingDao.save(bookTagMapping);
	}
	
	@Override
	public void update(BookTagMappingEntity bookTagMapping){
		bookTagMappingDao.update(bookTagMapping);
	}
	
	@Override
	public void delete(Long id){
		bookTagMappingDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		bookTagMappingDao.deleteBatch(ids);
	}
	
}
